.class public Lcom/instagram/android/o/i;
.super Ljava/lang/Object;
.source "QuickExperimentPreferences.java"


# instance fields
.field private final a:Landroid/content/SharedPreferences;


# direct methods
.method constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 19
    invoke-static {p1}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/o/i;->a:Landroid/content/SharedPreferences;

    .line 20
    return-void
.end method


# virtual methods
.method public declared-synchronized a()Z
    .locals 6

    .prologue
    .line 23
    monitor-enter p0

    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 24
    iget-object v2, p0, Lcom/instagram/android/o/i;->a:Landroid/content/SharedPreferences;

    const-string v3, "com.instagram.android.quickexperiment.QuickExperimentPreferences.LAST_SYNCHRONIZATION"

    const-wide/16 v4, 0x0

    invoke-interface {v2, v3, v4, v5}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-wide v2

    .line 25
    const-wide/32 v4, 0xdbba00

    add-long/2addr v2, v4

    cmp-long v2, v0, v2

    if-gez v2, :cond_0

    .line 26
    const/4 v0, 0x0

    .line 29
    :goto_0
    monitor-exit p0

    return v0

    .line 28
    :cond_0
    :try_start_1
    iget-object v2, p0, Lcom/instagram/android/o/i;->a:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "com.instagram.android.quickexperiment.QuickExperimentPreferences.LAST_SYNCHRONIZATION"

    invoke-interface {v2, v3, v0, v1}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 29
    const/4 v0, 0x1

    goto :goto_0

    .line 23
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
